package miku.firstgame.ui.control
{
	import feathers.controls.List;
	import feathers.events.CollectionEventType;

	import flash.media.Video;

	import starling.events.Event;

	public class ListEx extends List
	{
		public function ListEx()
		{
			super();
		}

		public function listCountChanged():void
		{
			//this.invalidate(INVALIDATION_FLAG_DATA);
			if (dataProvider)
			{
				dataProvider.dispatchEventWith(Event.CHANGE);
			}
		}

		public function updateItem(item:Object):void
		{
			if (dataProvider)
			{
				var index:int = dataProvider.getItemIndex(item);
				if (-1 != index)
				{
					dataProvider.updateItemAt(index);
				}
			}
		}
	}
}
